#!/usr/bin/python
import os,sys
def camino(n):
	s = ""
	c = 0
	for i in range(0,n-1):
		s = s + "%d %d\n" % (i,i+1)
		c = c +1
	print "%d %d" % (n,c)
	print s.strip()

def main():
	st = int(sys.argv[1])	
	end = int(sys.argv[2])
	for i in range(st,end):
		camino(i)

if __name__ == "__main__":
	main()
